//
//  CardBagCollectionHeader.swift
//  CardBag
//
//  Created by hl on 2019/5/22.
//  Copyright © 2019 hlznj. All rights reserved.
//

import UIKit

class CustomLayer: CALayer {
    override var zPosition: CGFloat {
        get { return 0 }
        set {}
    }
}

class CardBagCollectionHeader: UICollectionReusableView {
    public var nameLabel = UILabel.init()

    override init(frame: CGRect) {
        super.init(frame: frame)
        self.backgroundColor = UIColor.groupTableViewBackground
        self.nameLabel.font = UIFont.boldSystemFont(ofSize: 14)
        self .addSubview(self.nameLabel)
        self.nameLabel.snp.makeConstraints { (make) in
            make.left.equalTo(10)
            make.right.equalTo(-10)
            make.top.bottom.equalTo(0)
        }
    }

    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }

    override class var layerClass: AnyClass {
        get { return CustomLayer.self }
    }
}
